export const edgeOptions = () => {
  return {
    highlight: {
      stroke: "#999",
      strokeOpacity: 1,
    },
    lineDark: {
      stroke: "#999",
      strokeOpacity: 0.2,
    },
  };
};
export const nodeOptions = (item) => {
  return {
    hover: {
      stroke: "#fff",
      lineWidth: 2,
      labelCfg: {
        style: {
          fill: "#fff",
          background: {
            fill: "#ccc",
            padding: [3, 2, 3, 2],
            radius: 2,
            lineWidth: 0,
          },
        },
      },
    },
    highlight: {
      opacity: 1,
      stroke: "#fff",
      lineWidth: 2,
      fill: item.backgroundColor,
    },
    selected: {
      opacity: 1,
      stroke: "#fff",
      lineWidth: 2,
      fill: item.backgroundColor,
      shadowColor: "",
      shadowBlur: 0,
    },
    dark: {
      opacity: 0.2,
    },
  };
};
